<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>编辑</title>
		<%@ include file="/commons/includes/head.jspf"%>
		<%@ include file="/commons/manage/content.jspf"%>
		<script type="text/javascript" src="messageEdit.js"></script>
	</head>
	<body>
		<form name="messageEdit" action="messageEdit.shtml" method="post">
			<input type="hidden" id="event" name="event" value="save" />
			<input type="hidden" name="id" value="${form.id}" />
			<input type="hidden" name="state" value="${form.state}" />
			<input type="hidden" name="expert" value="${form.expert}" />

			<div class="contBtnDiv">
				<span class="contBtn contBtnBack" id="btnBack">返 回</span>
				<c:if test="${form.state eq 'ASSIGNED'}">
					<span class="contBtn contBtnSave" id="btnSave">保 存</span>
				</c:if>
			</div>
			<div class="editDiv" style="display: block;">
				<table style="width: 100%;">
					<tr>
						<td align="center" width="15%">
							留言主题：
						</td>
						<td colspan="3">
							<input type="text" class="text" name="title" readonly="readonly"
								value="<c:out value="${form.title}" />" style="width: 657px;" />
						</td>
					</tr>
					<tr>
						<td align="center">
							留言人：
						</td>
						<td>
							<input type="text" class="text" name="submiter" readonly="readonly"
								value="${form.submiter}" style="width: 250px;" />
						</td>
						<td align="center">
							留言时间：
						</td>
						<td>
							<input type="text" class="text" name="submitTime" readonly="readonly"
								style="width: 250px;"
								value="<fmt:formatDate value="${form.submitTime}" pattern="yyyy-MM-dd HH:mm:ss" />" />
						</td>
					</tr>
					<tr>
						<td align="center" valign="top" style="padding-top: 4px;">
							留言内容：
						</td>
						<td colspan="3">
							<textarea rows="5" name="question"
								style="width: 657px; overflow: auto;" readonly="readonly">${form.question}</textarea>
						</td>
					</tr>
					<c:if test="${form.state ne 'TOASSIGNED'}">
						<tr>
							<td align="center">
								回复人：
							</td>
							<td>
								<input type="text" class="text" readonly="readonly"
									value="${form.expert}" style="width: 250px;" />
							</td>
							<td align="center">
								回复时间：
							</td>
							<td>
								<input type="text" class="text" readonly="readonly"
									style="width: 250px;"
									value="<fmt:formatDate value="${form.replyTime}" pattern="yyyy-MM-dd HH:mm:ss" />" />
							</td>
						</tr>
						<tr>
							<td align="center" valign="top" style="padding-top: 4px;">
								回复内容：
							</td>
							<td colspan="3">
								<textarea rows="5" name="reply"
									style="width: 657px; overflow: auto;"
									<c:if test="${form.state eq 'REPLIED'}">readonly="readonly"</c:if>>${form.reply}</textarea>
							</td>
						</tr>
					</c:if>
				</table>
			</div>
		</form>
	</body>
</html>